package org.jeecg.modules.qyxx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.jeffreyning.mybatisplus.service.MppServiceImpl;
import org.jeecg.modules.qyxx.entity.TycLsgsxxJyqxlb;
import org.jeecg.modules.qyxx.mapper.TycLsgsxxJyqxlbMapper;
import org.jeecg.modules.qyxx.service.ITycLsgsxxJyqxlbService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
*
*/
@Service
public class TycLsgsxxJyqxlbServiceImpl extends MppServiceImpl<TycLsgsxxJyqxlbMapper, TycLsgsxxJyqxlb>
implements ITycLsgsxxJyqxlbService {

    @Override
    public List<TycLsgsxxJyqxlb> listByShxydm(String djxh) {
        LambdaQueryWrapper<TycLsgsxxJyqxlb> wrapper = Wrappers.lambdaQuery(TycLsgsxxJyqxlb.class);
        wrapper.eq(TycLsgsxxJyqxlb::getShxydm,djxh);
        return list(wrapper);
    }

    @Override
    public List<TycLsgsxxJyqxlb> listByShxydmAndTjnd(String djxh, String tjnd) {
        LambdaQueryWrapper<TycLsgsxxJyqxlb> wrapper = Wrappers.lambdaQuery(TycLsgsxxJyqxlb.class);
        wrapper.eq(TycLsgsxxJyqxlb::getShxydm,djxh)
        .likeRight(TycLsgsxxJyqxlb::getTime,tjnd);
        return list(wrapper);
    }
}
